/**
 * @ClassName: Demo07
 * @Description: TODO 递归练习
 * @Author: MaykkStar@163.com
 */
public class Demo07 {
    // public static void main(String[] args) {
    //     mySpeak(3);
    // }
    public static void main(String[] args) {
        mySpeak(3);
    }

    private static void mySpeak(int i) {
        System.out.println("进入方法了, i = " + i);
        if (i > 1)
            mySpeak(i-1);
        System.out.println("离开方法了, i = " + i);
    }
}
